;; add module imports
(use-modules
 (guix packages)
 (guix download)
 (guix build-system python)
 ((guix licenses) #:prefix license:)
 ;; run guix package -A python-django to learn where django
 ;; is stored and then add the import
 (gnu packages django))

(define-public python-django-js-asset
  (package
   (name "python-django-js-asset")
   (version "1.2.2")
   (source
    (origin
     (method url-fetch)
     (uri (pypi-uri "django-js-asset" version))
     (sha256
      (base32
       "0q3j2rsdb2i7mvncy9z160cghcggvk87q14qnn7jvcp0sa0awqy1"))))
   (build-system python-build-system)
   (home-page
    "https://github.com/matthiask/django-js-asset/")
   (synopsis
    "script tag with additional attributes for django.forms.Media")
   (description
    "script tag with additional attributes for django.forms.Media")
   (license license:bsd-3)))

(define-public python-django-mptt
  (package
   (name "python-django-mptt")
   (version "0.11.0")
   (source
    (origin
     (method url-fetch)
     (uri (pypi-uri "django-mptt" version))
     (sha256
      (base32
       "1a4m32yb85bamfpjrg4r1ywz4x21az44wm5hb12dsz6jbbvkmnyz"))))
   (build-system python-build-system)
   (propagated-inputs
    `(("python-django" ,python-django)
      ("python-django-js-asset"
       ,python-django-js-asset)))
   (home-page
    "https://github.com/django-mptt/django-mptt")
   (synopsis
    "Utilities for implementing Modified Preorder Tree Traversal with your Django Models and working with trees of Model instances.")
   (description
    "Utilities for implementing Modified Preorder Tree Traversal with your Django Models and working with trees of Model instances.")
   (license license:expat)))

;; add result expression
'(python-django-mptt python-django)
